package dht.message;

import java.io.Serializable;
import java.net.InetAddress;

import dht.data.TabBigInteger;

public class MajMessage extends Message implements Serializable{

	private static final long serialVersionUID = -7337872743599125493L;
	private String addrrAncienVoisin;
	private int dim;
	
	public MajMessage(InetAddress adresseIpExp, String virtualId,
			          TabBigInteger destination, int dim, String addrrAncienVoisin){
		
		super(adresseIpExp, virtualId, destination);
		super.TYPE_MSG = Message.MAJ_Message;
		
		this.dim = dim;
		this.addrrAncienVoisin = addrrAncienVoisin;
	}

	public String getAddrrAncienVoisin() {
		return this.addrrAncienVoisin;
	}
	
	public int getDim(){
		return this.dim;
	}
}
